﻿@model ProjectHopur23.Models.AdminViewModel
<link rel="stylesheet" type="text/css" href="/Content/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/Content/Site.css" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/bootstrap.js" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/jquery-1.8.2.js" />
<h1>Admin Kerfi</h1>

<div id="users">
	<table>
		<caption>Notendur</caption>
		<thead>
			<tr>
				<th scope="col">Nafn</th>
				<th scope="col">Netfang</th>
			</tr>
		</thead>
		<tbody>
		@{
			foreach( au in Model.allUsers)
			{
				<tr>
					<td>@Html.ActionLink(au.UserName, "ChangeUser/" + au.UserId, "Home")</td>
					<td>@au.email</td>
				</tr>
			}
		}
		</tbody>
	</table>
</div>
